

#include "lvgl_display.h"


#define XIAOZHI_TASK_STACK_SIZE 0x1000
#define XIAOZHI_TASK_PRIO (osPriorityNormal + 1)

static void test_task(void)
{
    lvgl_display_open();
}

static void test_entry(void)
{
    osThreadAttr_t attr;

    attr.name = "XiaozhiTask";
    attr.attr_bits = 0U;
    attr.cb_mem = NULL;
    attr.cb_size = 0U;
    attr.stack_mem = NULL;
    attr.stack_size = XIAOZHI_TASK_STACK_SIZE;
    attr.priority = XIAOZHI_TASK_PRIO;

    if (osThreadNew((osThreadFunc_t)test_task, NULL, &attr) == NULL)
    {
        printf("Failed to create testzhi task!\n");
    }
}

app_run(test_entry);
